package practice2;

import utils.node.Queue;

/**
 * @author Tara
 * @implNote 测试队列的实现
 */
public class Pra5 {

    public static void main(String[] args) {
        Queue<Object> queue = new Queue<>();
        System.out.println("队列是空的吗？"+queue.isEmpty());
        for (int i = 0; i < 10; i++) {
            queue.push(i);
            System.out.print(i+",");
        }
        System.out.println("队列是空的吗？"+queue.isEmpty());
        System.out.println("=======");
        for (int i = 0; i < 10; i++) {
            System.out.print(queue.poll()+",");
        }
        System.out.println("队列是空的吗？"+queue.isEmpty());
    }

}
